package com.ztom.test

import com.ztom.beans.factory.support.extenssions.getBean
import com.ztom.context.support.ClassPathXmlApplicationContext
import com.ztom.test.service.TestService
import kotlin.test.Test

/**
 * @author ZhangTao
 */
class Test09AwareInterface {

    @Test
    fun test() {
        val applicationContext = ClassPathXmlApplicationContext("classpath:spring-09-aware-interface.xml")
        val testService = applicationContext.getBean<TestService>()
        println(testService)

        applicationContext.registerShutdownHook()
    }
}